package logs

type LogOptions struct {
	fileName     string
	filePath 	 string
	fileSize     int
	maxFileCount int
	debug        bool
	compress     bool
	json         bool
	handler      LogHandler
	hook         LogHook
	color 		 bool
}

func (o *LogOptions) Color(value bool) *LogOptions {
	o.color = value
	return o
}

func (o *LogOptions) FileName(file string) *LogOptions {
	o.fileName = file
	return o
}
func (o *LogOptions) FileSize(value int) *LogOptions {
	o.fileSize = value
	return o
}
func (o *LogOptions) FilePath(path string) *LogOptions {
	o.filePath = path
	return o
}
func (o *LogOptions) MaxFileCount(value int) *LogOptions {
	o.maxFileCount = value
	return o
}
func (o *LogOptions) Debug(value bool) *LogOptions {
	o.debug = value
	return o
}

func (o *LogOptions) Compress(value bool) *LogOptions {
	o.compress = value
	return o
}

func (o *LogOptions) Json(value bool) *LogOptions {
	o.json = value
	return o
}

func (o *LogOptions) Handler(value LogHandler) *LogOptions {
	o.handler = value
	return o
}

func (o *LogOptions) Hook(value LogHook) *LogOptions {
	o.hook = value
	return o
}
